<?php

require_once('IDatabase.class.php');

class mySQLite3 implements IDatabase
{
    
    private $database;
    private $transaction;
    
    public function _construct()
    {
        $this->database = NULL;
        $this->transaction = FALSE;
    }
    
    public function open($host, $dbname = NULL, $user = NULL, $pwd = NULL)
    {
        $this->database = new SQLite3($host);
    }
    
    public function close()
    {
        
    }
    
    public function query($query)
    {
        return ($this->database->query($query)->fetchArray());
    }
    
    public function openTransaction()
    {
        
        
    }
    
    public function closeTransaction()
    {
        
    }
}
?>
